package com.library.admin.modules.booktype.service;

import com.library.admin.modules.booktype.entity.BookType;
import com.library.admin.modules.booktype.vo.BookTypeVO;
import com.library.admin.modules.booktype.bo.BookTypePage;
import com.library.admin.modules.booktype.bo.BookTypeInsert;
import com.library.admin.modules.booktype.bo.BookTypeUpdate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @Author xyh
 * @Desc 图书分类表(BookType)表服务接口
 * @Date 2023-10-05 09:46:51
 */
public interface BookTypeService extends IService<BookType> {

    /**
     * 获取全部的数据
     */
    List<BookType> bookTypeList();

    /**
     * 根据ID查详情
     */
    BookTypeVO queryById(Integer id);

    /**
     * 新增数据
     */
    boolean insert(BookTypeInsert bookTypeInsert);

    /**
     * 修改数据
     */
    boolean update(BookTypeUpdate bookTypeUpdate);

    /**
     * 通过主键删除数据
     */
    boolean deleteById(Integer id);

    /**
     * 图书分类树
     *
     * @return
     */
    List<BookTypeVO> getBookTypeTree();

}
